package com.sc.smartcommunity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("payment_order")
public class PaymentOrder {
    //主键ID
    @TableId(type = IdType.AUTO)
    private Long id;
    //缴费记录ID
    @TableField("payment_id")
    private Long paymentId;
    //订单号
    @TableField("order_no")
    private String orderNo;
    //支付渠道：1-微信 2-支付宝
    @TableField("pay_channel")
    private Integer payChannel;
    //第三方支付流水号
    @TableField("pay_no")
    private String payNo;
    //创建时间
    @TableField("created_time")
    private LocalDateTime createdTime;
    //更新时间
    @TableField("updated_time")
    private LocalDateTime updatedTime;

    public PaymentOrder(Long id, Long paymentId, String orderNo, Integer payChannel, String payNo, LocalDateTime createdTime, LocalDateTime updatedTime) {
        this.id = id;
        this.paymentId = paymentId;
        this.orderNo = orderNo;
        this.payChannel = payChannel;
        this.payNo = payNo;
        this.createdTime = createdTime;
        this.updatedTime = updatedTime;
    }

    public PaymentOrder() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(Long paymentId) {
        this.paymentId = paymentId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public String getPayNo() {
        return payNo;
    }

    public void setPayNo(String payNo) {
        this.payNo = payNo;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }
}
